import React, { Component, ReactElement } from 'react'
import { RouteComponentProps } from 'react-router-dom'
import { Layout } from 'antd'
import { hot } from 'react-hot-loader/root'
import { connect } from 'react-redux'
import { AppState } from '@stores/interface'
import Header from 'components/Header'

type ReduxType = RouteComponentProps & { children: ReactElement }

class Master extends Component<ReduxType> {

  constructor(props: ReduxType) {
    super(props)
    this.state = {

    }
  }

  render() {
    const { children, history, match, location } = this.props
    const resetProps = {
      history,
      location,
      match,
    }
    return (
      <>
        <Header />
        {children}
      </>
    )
  }
}

export default Master
